package io.xccit.race.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.xccit.common.annotation.Excel;
import io.xccit.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 高校信息对象 race_university
 * 
 * @author xccit
 * @date 2025-10-8
 */
public class RaceUniversity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 高校ID */
    private Long id;

    /** 高校名称 */
    @Excel(name = "高校名称")
    private String name;

    /** 所属区域ID */
    @Excel(name = "所属区域ID")
    private Long regionId;

    /** 所属区域信息 */
    private RaceRegion region;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }

    public RaceRegion getRegion() 
    {
        return region;
    }

    public void setRegion(RaceRegion region) 
    {
        this.region = region;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("regionId", getRegionId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
